package com.alongstudio.account.service;

import java.util.Map;

import com.alongstudio.account.commons.exception.BusinessException;
import com.alongstudio.account.entity.KeepAccountsDetail;

public interface IDetailsService {

	/**
	 * 收支明细
	 * @param userId
	 * @param start
	 * @param pageSize
	 * @return
	 * @throws BusinessException
	 */
	Map findIncomeAndExpenditureDetail(String userId, int start, int pageSize) throws BusinessException;
	
	/**
	 * 查找明细
	 * 
	 * @param userId
	 * @return
	 * @throws BusinessException
	 */
	Map findDetail(String userId, Byte type, int start, int pageSize) throws BusinessException;
	/**
	 * 删除明细
	 * 
	 * @param id
	 * @return
	 * @throws BusinessException
	 */
	boolean deleteDetail(String id) throws BusinessException;

	/**
	 * 更新明细
	 * 
	 * @param detail
	 * @return
	 * @throws BusinessException
	 */
	boolean updateDetail(KeepAccountsDetail detail) throws BusinessException;
}
